<script setup>

const detailInfo = inject('detailInfo');

const list = computed(()=> {
  const detailValue = detailInfo.value;
  if (!detailValue || !detailValue.formData || !detailValue.formData.items.length) {
    return []
  }
  return detailValue.formData.items;
})
</script>

<template>
  <vxe-table :data="list">
    <vxe-column title="名称" field="name"></vxe-column>
    <vxe-column title="类别" field="categoryName"></vxe-column>
    <vxe-column title="品牌" field="brand"></vxe-column>
    <vxe-column title="型号" field="model"></vxe-column>
  </vxe-table>
</template>

<style scoped lang="scss">

</style>